package com.qf.dao;

import com.qf.entitys.Business;
import com.qf.entitys.BusinessWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusinessMapper {
    int deleteByPrimaryKey(Integer bid);

    int insert(BusinessWithBLOBs record);

    int insertSelective(Business record);

    BusinessWithBLOBs selectByPrimaryKey(Integer bid);

    int updateByPrimaryKeySelective(BusinessWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(BusinessWithBLOBs record);

    int updateByPrimaryKey(Business record);

    List<BusinessWithBLOBs> selectAll(Business record);

    int updateBactive(@Param("bid")Integer bid,@Param("bactive")Integer bactive);

    BusinessWithBLOBs selectDetailByid(Integer bid);

    Business selectByIdAndPwd(Business record);

    List<BusinessWithBLOBs> selectAllByMillis(@Param("log")double log,@Param("lat")double lat);
}
